Creating PostgreSQL datasheets

If you have a large amount of existing test data in a PostgreSQL database, you can create an external datasheet to use it in data-driven scripts. You can retrieve all data from a table, use a query to retrieve a subset of data, or use a script-generated query to retrieve data during playback.

1. Choose Data > Create Datasheet.

The Create Datasheet wizard opens.

2. Select an external data source option.

3. Click Next.

4. Select PostgreSQL database as the Datasheet type.

5. Enter the Server host name or IP address.

6. Enter the Database name.

7. Enter the TCP/IP port used to communicate with the PostgreSQL server.

8. Select an Authentication type.

9. Select a Source to use to retrieve data from the database.

10. Click Next.

11. Specify the datasheet properties.

12. Click Finish to add the datasheet to the workspace.